package com.demo.task.socket

import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.StateFlow

interface RemoteInterface {

    val msg: SharedFlow<String>

    val isConnect: StateFlow<Boolean>

    fun connect()

    fun send(msg: String)

    fun sendBasic(map: Map<String, Any>)

    fun close()

}